package com.maimao.model.echarts.common;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.common.collect.Lists;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;

import java.util.Arrays;
import java.util.List;

import static cn.hutool.core.util.StrUtil.COMMA;

/**
 * 柱状+折线
 * @author MaoLin Wang
 * @date 2021/3/30 5:10 下午
 */
@Getter
@JsonInclude(JsonInclude.Include.NON_NULL)
@Setter
public class BarLineOption<T> extends LineOption<T> {

    /**
     * y轴名称（前端直接处理，这里基本不用）
     */
    private List<String> yAxisData;
    @Override
    public String getSeriesType() {
        return StringUtils.join(new String[]{"bar","line"},COMMA);
    }
}
